package com.catmiw.swt;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class Word extends XMLBean{
	public Word(){
		xmlname="word";
	}

	private String id;
	private String plural;//复数
	private String comparative;
	private String superlative;
	private String pastTense;//过去式
	private String pastParticiple;//过去分词
	private String presentParticiple;//现在分词
	private String thirdPersonSingular;//第三人称单数
	private List<Meaning> meanings;
	private String derivatives;
	
	public String getDerivatives() {
		return derivatives;
	}

	public void setDerivatives(String derivatives) {
		this.derivatives = derivatives;
	}

	public String getPlural() {
		return plural;
	}

	public void setPlural(String plural) {
		this.plural = plural;
	}

	public List<Meaning> getMeanings() {
		return meanings;
	}

	public void setMeanings(List<Meaning> meanings) {
		this.meanings = meanings;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getComparative() {
		return comparative;
	}

	public void setComparative(String comparative) {
		this.comparative = comparative;
	}

	public String getSuperlative() {
		return superlative;
	}

	public void setSuperlative(String superlative) {
		this.superlative = superlative;
	}

	public String getPastTense() {
		return pastTense;
	}

	public void setPastTense(String pastTense) {
		this.pastTense = pastTense;
	}

	public String getPastParticiple() {
		return pastParticiple;
	}

	public void setPastParticiple(String pastParticiple) {
		this.pastParticiple = pastParticiple;
	}

	public String getPresentParticiple() {
		return presentParticiple;
	}

	public void setPresentParticiple(String presentParticiple) {
		this.presentParticiple = presentParticiple;
	}

	public String getThirdPersonSingular() {
		return thirdPersonSingular;
	}

	public void setThirdPersonSingular(String thirdPersonSingular) {
		this.thirdPersonSingular = thirdPersonSingular;
	}

	/**
	 * @param args
	 * @throws NoSuchMethodException 
	 * @throws InvocationTargetException 
	 * @throws IllegalAccessException 
	 */
	public static void main(String[] args) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
		List<Example> es=new ArrayList<Example>();
		for (int i=0;i<1;i++){
			Example e=new Example();
			e.setOrder(1);
			e.setChinese("中文");
			e.setEnglish("e");
			es.add(e);
		}
		
		Meaning m=new Meaning();
		m.setExamples(es);
		m.setOrder(101);
		
		List<Meaning> ms=new ArrayList<Meaning>();
		ms.add(m);
		
		Word w=new Word();
		w.setMeanings(ms);
		w.setId("test");
		
		System.out.println(w);
		
	}

}
